//
//  HealthTableViewCell.m
//  FoodList
//
//  Created by 王金晶 on 16/4/12.
//  Copyright © 2016年 王金晶. All rights reserved.
//

#import "HealthTableViewCell.h"
#import <UIImageView+WebCache.h>
@implementation HealthTableViewCell
- (void)setModel:(HealthModel *)model
{
    [self.icon sd_setImageWithURL:[NSURL URLWithString:model.url]];
    self.title.text = model.title;
    if (model.view_count1 == nil) {
        self.number.text = @"浏览次数:0";
    }
    self.number.text = [NSString stringWithFormat:@"浏览次数:%@",model.view_count1];
    
    NSString *string1 = model.updated_at;
    string1 = [string1 substringToIndex:10];
    self.date.text = [NSString stringWithFormat:@"发布时间:%@",string1];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
